<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<input type="text"  />
		
		<script type="text/javascript">
			
		
			
			window.onkeydown=function(){
				console.log("键盘按下")
			}
			
			window.onkeypress=function(){
				console.log("键盘释放")
			}
			
			window.onkeyup=function(e){
				console.log(e)
			}
		</script>
	</body>
</html>
